<template>
      <footer class="footer">
      <!--tab栏-->
      <van-tabbar v-model="active" route>
        <van-tabbar-item  to="/dewu"  :icon="require('../img/1.jpg')">得物</van-tabbar-item>
        <van-tabbar-item  to="/" :icon="require('../img/2.jpg')">购买</van-tabbar-item>
        <van-tabbar-item  to="/tansou" :icon="require('../img/3.jpg')">探索</van-tabbar-item>
        <van-tabbar-item  to="/user"   :icon="require('../img/4.jpg')">我</van-tabbar-item>
      </van-tabbar>
    </footer>
</template>

<script setup>
import { ref } from "vue";
//tab栏高亮
const active = ref(1);
</script>